package com.xu.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CourseDto implements Serializable {
    private String courseName;
    private String collegeName;
    private String teacherName;
    private int courseScore;
    private String description;
    private String schedule;

    public CourseDto(Course course) {
        this.courseName = course.getCourseName();
        this.collegeName = course.getCollegeName();
        this.teacherName = course.getTeacherName();
        this.courseScore = course.getCourseScore();
        this.description = course.getDescription();
        this.schedule = course.getSchedule();
    }
}
